package com.tis.database.entitys.promis;

import java.io.Serializable;

import javax.persistence.*;

import com.tis.database.dao.ClsInstance;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PMS_PAYMENTS_RECEIVED database table.
 * 
 */
@Entity
@Table(name=ClsInstance.PROMIS_SCHEMA + ClsInstance.POINTER + "PMS_PAYMENTS_RECEIVED")
@NamedQueries({
	@NamedQuery(name=PmsPaymentsReceived.findAll, query="FROM PmsPaymentsReceived c"),
	@NamedQuery(name=PmsPaymentsReceived.findByIs, query="FROM PmsPaymentsReceived c Where c.syncIsstaging = :syncIsstaging And c.syncIssync =:syncIssync ")
})
public class PmsPaymentsReceived implements Serializable {
	private static final long serialVersionUID = 1L;

	@Transient 
	public static final String findAll = "PmsPaymentsReceived_findAll";
	public static final String findByIs = "PmsPaymentsReceived_findByIs";
	
	@EmbeddedId
	private PmsPaymentsReceivedPK id;

	@Column(name="ADDRESS_CODE")
	private BigDecimal addressCode;

	@Column(name="ADDRESS_CUSTOMER")
	private String addressCustomer;

	@Column(name="ADJUST_AMOUNT")
	private BigDecimal adjustAmount;

	@Column(name="AMOUNT_ADJUSTED")
	private BigDecimal amountAdjusted;

	@Column(name="APPROVED_BY")
	private String approvedBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="APPROVED_ON")
	private Date approvedOn;

	@Column(name="BATCH_ID")
	private String batchId;

	@Column(name="BUILDING_PHASE_CODE")
	private String buildingPhaseCode;

	@Column(name="CASH_AMOUNT")
	private BigDecimal cashAmount;

	@Column(name="COST_OF_GOODS_AND_SERVICES")
	private BigDecimal costOfGoodsAndServices;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	private String currency;

	@Column(name="CUSTOMER_CODE")
	private String customerCode;

	@Column(name="CUSTOMER_NAME")
	private String customerName;

	@Column(name="DEPARTMENT_CODE")
	private String departmentCode;

	@Column(name="EXCH_GAIN_LOSS")
	private BigDecimal exchGainLoss;

	@Column(name="EXCHANGE_RATE")
	private BigDecimal exchangeRate;

	@Column(name="FISCAL_PERIOD")
	private BigDecimal fiscalPeriod;

	@Column(name="FISCAL_YEAR")
	private BigDecimal fiscalYear;

	@Column(name="FLAG_PRINT")
	private String flagPrint;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="INV_SAP_DATE")
	private Date invSapDate;

	@Column(name="INV_SAPNO")
	private String invSapno;

	@Column(name="\"LANGUAGE\"")
	private String language;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="LOT_CODE")
	private String lotCode;

	@Column(name="LOT_DESC")
	private String lotDesc;

	private String narration;

	@Column(name="NARRATION_VAT")
	private String narrationVat;

	@Column(name="NET_AMOUNT_RECEIVED")
	private BigDecimal netAmountReceived;

	@Column(name="NET_AMOUNT_RECEIVED_LOCAL")
	private BigDecimal netAmountReceivedLocal;

	@Column(name="PDC_FLAG")
	private String pdcFlag;

	@Column(name="PRINT_COUNT")
	private BigDecimal printCount;

	private String project;

	@Column(name="PROPERTY_TYPE_CODE")
	private String propertyTypeCode;

	@Column(name="RECEIPT_VOUCHER_ID")
	private String receiptVoucherId;

	@Column(name="RECEIPT_VOUCHER_NUMBER")
	private BigDecimal receiptVoucherNumber;

	@Column(name="RECEIPT_VOUCHER_SERIES")
	private String receiptVoucherSeries;

	@Column(name="RECEIPT_VOUCHER_TYPE")
	private String receiptVoucherType;

	@Column(name="REF_DOCUMENT")
	private String refDocument;

	@Column(name="REF_TYPE")
	private String refType;

	private String remarks;

	@Column(name="RENT_ADV_CLR_ONLY")
	private String rentAdvClrOnly;

	@Column(name="SBO_ENTRY")
	private BigDecimal sboEntry;

	@Column(name="SBO_JE")
	private BigDecimal sboJe;

	@Column(name="SBO_JEENTEY")
	private BigDecimal sboJeentey;

	@Column(name="SBO_RECEIVED")
	private BigDecimal sboReceived;

	private String status;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_HEADER_ID")
	private String syncHeaderId;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TEMPORARY_RECEIPT_NUMBER")
	private BigDecimal temporaryReceiptNumber;

	@Column(name="TEMPORARY_RECEIPT_SERIES")
	private String temporaryReceiptSeries;

	@Column(name="TEMPORARY_RECEIPT_TYPE")
	private String temporaryReceiptType;

	@Column(name="TMP_VOUCHER_NUMBER")
	private BigDecimal tmpVoucherNumber;

	@Column(name="TMP_VOUCHER_SERIES")
	private String tmpVoucherSeries;

	@Column(name="TMP_VOUCHER_TYPE")
	private String tmpVoucherType;

	@Column(name="TOTAL_VAT_AMOUNT")
	private BigDecimal totalVatAmount;

	@Column(name="TOTAL_WHT_AMOUNT")
	private BigDecimal totalWhtAmount;

	@Column(name="TRANSFER_B1_LOG")
	private String transferB1Log;

	@Column(name="UNADJUSTED_AMOUNT")
	private BigDecimal unadjustedAmount;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="VOUCHER_DATE")
	private Date voucherDate;

	@Column(name="WHT_VALUE")
	private BigDecimal whtValue;
	
	@Column(name="IS_RESEND")
	private String isResend;
	
	@Column(name="RESEND_COUNT")
	private int resendCount;

	public PmsPaymentsReceived() {
	}
	
	/**
	 * @return the isResend
	 * Date =Nov 1, 2013 : 5:58:29 PM 
	 * CreateBy=Chatree Siangklom
	 * PmsPaymentsReceived.java String
	 * TODO
	 */
	public String getIsResend() {
		return isResend;
	}


	/**
	 * @param isResend the isResend to set
	 * Date =Nov 1, 2013 : 5:58:29 PM 
	 * CreateBy=Chatree Siangklom
	 *  PmsPaymentsReceived.java String
	 * TODO
	 */
	public void setIsResend(String isResend) {
		this.isResend = isResend;
	}


	/**
	 * @return the resendCount
	 * Date =Nov 1, 2013 : 5:58:29 PM 
	 * CreateBy=Chatree Siangklom
	 * PmsPaymentsReceived.java int
	 * TODO
	 */
	public int getResendCount() {
		return resendCount;
	}


	/**
	 * @param resendCount the resendCount to set
	 * Date =Nov 1, 2013 : 5:58:29 PM 
	 * CreateBy=Chatree Siangklom
	 *  PmsPaymentsReceived.java int
	 * TODO
	 */
	public void setResendCount(int resendCount) {
		this.resendCount = resendCount;
	}


	public PmsPaymentsReceivedPK getId() {
		return this.id;
	}

	public void setId(PmsPaymentsReceivedPK id) {
		this.id = id;
	}

	public BigDecimal getAddressCode() {
		return this.addressCode;
	}

	public void setAddressCode(BigDecimal addressCode) {
		this.addressCode = addressCode;
	}

	public String getAddressCustomer() {
		return this.addressCustomer;
	}

	public void setAddressCustomer(String addressCustomer) {
		this.addressCustomer = addressCustomer;
	}

	public BigDecimal getAdjustAmount() {
		return this.adjustAmount;
	}

	public void setAdjustAmount(BigDecimal adjustAmount) {
		this.adjustAmount = adjustAmount;
	}

	public BigDecimal getAmountAdjusted() {
		return this.amountAdjusted;
	}

	public void setAmountAdjusted(BigDecimal amountAdjusted) {
		this.amountAdjusted = amountAdjusted;
	}

	public String getApprovedBy() {
		return this.approvedBy;
	}

	public void setApprovedBy(String approvedBy) {
		this.approvedBy = approvedBy;
	}

	public Date getApprovedOn() {
		return this.approvedOn;
	}

	public void setApprovedOn(Date approvedOn) {
		this.approvedOn = approvedOn;
	}

	public String getBatchId() {
		return this.batchId;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public String getBuildingPhaseCode() {
		return this.buildingPhaseCode;
	}

	public void setBuildingPhaseCode(String buildingPhaseCode) {
		this.buildingPhaseCode = buildingPhaseCode;
	}

	public BigDecimal getCashAmount() {
		return this.cashAmount;
	}

	public void setCashAmount(BigDecimal cashAmount) {
		this.cashAmount = cashAmount;
	}

	public BigDecimal getCostOfGoodsAndServices() {
		return this.costOfGoodsAndServices;
	}

	public void setCostOfGoodsAndServices(BigDecimal costOfGoodsAndServices) {
		this.costOfGoodsAndServices = costOfGoodsAndServices;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getDepartmentCode() {
		return this.departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public BigDecimal getExchGainLoss() {
		return this.exchGainLoss;
	}

	public void setExchGainLoss(BigDecimal exchGainLoss) {
		this.exchGainLoss = exchGainLoss;
	}

	public BigDecimal getExchangeRate() {
		return this.exchangeRate;
	}

	public void setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public BigDecimal getFiscalPeriod() {
		return this.fiscalPeriod;
	}

	public void setFiscalPeriod(BigDecimal fiscalPeriod) {
		this.fiscalPeriod = fiscalPeriod;
	}

	public BigDecimal getFiscalYear() {
		return this.fiscalYear;
	}

	public void setFiscalYear(BigDecimal fiscalYear) {
		this.fiscalYear = fiscalYear;
	}

	public String getFlagPrint() {
		return this.flagPrint;
	}

	public void setFlagPrint(String flagPrint) {
		this.flagPrint = flagPrint;
	}

	public Date getInvSapDate() {
		return this.invSapDate;
	}

	public void setInvSapDate(Date invSapDate) {
		this.invSapDate = invSapDate;
	}

	public String getInvSapno() {
		return this.invSapno;
	}

	public void setInvSapno(String invSapno) {
		this.invSapno = invSapno;
	}

	public String getLanguage() {
		return this.language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getLotCode() {
		return this.lotCode;
	}

	public void setLotCode(String lotCode) {
		this.lotCode = lotCode;
	}

	public String getLotDesc() {
		return this.lotDesc;
	}

	public void setLotDesc(String lotDesc) {
		this.lotDesc = lotDesc;
	}

	public String getNarration() {
		return this.narration;
	}

	public void setNarration(String narration) {
		this.narration = narration;
	}

	public String getNarrationVat() {
		return this.narrationVat;
	}

	public void setNarrationVat(String narrationVat) {
		this.narrationVat = narrationVat;
	}

	public BigDecimal getNetAmountReceived() {
		return this.netAmountReceived;
	}

	public void setNetAmountReceived(BigDecimal netAmountReceived) {
		this.netAmountReceived = netAmountReceived;
	}

	public BigDecimal getNetAmountReceivedLocal() {
		return this.netAmountReceivedLocal;
	}

	public void setNetAmountReceivedLocal(BigDecimal netAmountReceivedLocal) {
		this.netAmountReceivedLocal = netAmountReceivedLocal;
	}

	public String getPdcFlag() {
		return this.pdcFlag;
	}

	public void setPdcFlag(String pdcFlag) {
		this.pdcFlag = pdcFlag;
	}

	public BigDecimal getPrintCount() {
		return this.printCount;
	}

	public void setPrintCount(BigDecimal printCount) {
		this.printCount = printCount;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getPropertyTypeCode() {
		return this.propertyTypeCode;
	}

	public void setPropertyTypeCode(String propertyTypeCode) {
		this.propertyTypeCode = propertyTypeCode;
	}

	public String getReceiptVoucherId() {
		return this.receiptVoucherId;
	}

	public void setReceiptVoucherId(String receiptVoucherId) {
		this.receiptVoucherId = receiptVoucherId;
	}

	public BigDecimal getReceiptVoucherNumber() {
		return this.receiptVoucherNumber;
	}

	public void setReceiptVoucherNumber(BigDecimal receiptVoucherNumber) {
		this.receiptVoucherNumber = receiptVoucherNumber;
	}

	public String getReceiptVoucherSeries() {
		return this.receiptVoucherSeries;
	}

	public void setReceiptVoucherSeries(String receiptVoucherSeries) {
		this.receiptVoucherSeries = receiptVoucherSeries;
	}

	public String getReceiptVoucherType() {
		return this.receiptVoucherType;
	}

	public void setReceiptVoucherType(String receiptVoucherType) {
		this.receiptVoucherType = receiptVoucherType;
	}

	public String getRefDocument() {
		return this.refDocument;
	}

	public void setRefDocument(String refDocument) {
		this.refDocument = refDocument;
	}

	public String getRefType() {
		return this.refType;
	}

	public void setRefType(String refType) {
		this.refType = refType;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getRentAdvClrOnly() {
		return this.rentAdvClrOnly;
	}

	public void setRentAdvClrOnly(String rentAdvClrOnly) {
		this.rentAdvClrOnly = rentAdvClrOnly;
	}

	public BigDecimal getSboEntry() {
		return this.sboEntry;
	}

	public void setSboEntry(BigDecimal sboEntry) {
		this.sboEntry = sboEntry;
	}

	public BigDecimal getSboJe() {
		return this.sboJe;
	}

	public void setSboJe(BigDecimal sboJe) {
		this.sboJe = sboJe;
	}

	public BigDecimal getSboJeentey() {
		return this.sboJeentey;
	}

	public void setSboJeentey(BigDecimal sboJeentey) {
		this.sboJeentey = sboJeentey;
	}

	public BigDecimal getSboReceived() {
		return this.sboReceived;
	}

	public void setSboReceived(BigDecimal sboReceived) {
		this.sboReceived = sboReceived;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncHeaderId() {
		return this.syncHeaderId;
	}

	public void setSyncHeaderId(String syncHeaderId) {
		this.syncHeaderId = syncHeaderId;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public BigDecimal getTemporaryReceiptNumber() {
		return this.temporaryReceiptNumber;
	}

	public void setTemporaryReceiptNumber(BigDecimal temporaryReceiptNumber) {
		this.temporaryReceiptNumber = temporaryReceiptNumber;
	}

	public String getTemporaryReceiptSeries() {
		return this.temporaryReceiptSeries;
	}

	public void setTemporaryReceiptSeries(String temporaryReceiptSeries) {
		this.temporaryReceiptSeries = temporaryReceiptSeries;
	}

	public String getTemporaryReceiptType() {
		return this.temporaryReceiptType;
	}

	public void setTemporaryReceiptType(String temporaryReceiptType) {
		this.temporaryReceiptType = temporaryReceiptType;
	}

	public BigDecimal getTmpVoucherNumber() {
		return this.tmpVoucherNumber;
	}

	public void setTmpVoucherNumber(BigDecimal tmpVoucherNumber) {
		this.tmpVoucherNumber = tmpVoucherNumber;
	}

	public String getTmpVoucherSeries() {
		return this.tmpVoucherSeries;
	}

	public void setTmpVoucherSeries(String tmpVoucherSeries) {
		this.tmpVoucherSeries = tmpVoucherSeries;
	}

	public String getTmpVoucherType() {
		return this.tmpVoucherType;
	}

	public void setTmpVoucherType(String tmpVoucherType) {
		this.tmpVoucherType = tmpVoucherType;
	}

	public BigDecimal getTotalVatAmount() {
		return this.totalVatAmount;
	}

	public void setTotalVatAmount(BigDecimal totalVatAmount) {
		this.totalVatAmount = totalVatAmount;
	}

	public BigDecimal getTotalWhtAmount() {
		return this.totalWhtAmount;
	}

	public void setTotalWhtAmount(BigDecimal totalWhtAmount) {
		this.totalWhtAmount = totalWhtAmount;
	}

	public String getTransferB1Log() {
		return this.transferB1Log;
	}

	public void setTransferB1Log(String transferB1Log) {
		this.transferB1Log = transferB1Log;
	}

	public BigDecimal getUnadjustedAmount() {
		return this.unadjustedAmount;
	}

	public void setUnadjustedAmount(BigDecimal unadjustedAmount) {
		this.unadjustedAmount = unadjustedAmount;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public Date getVoucherDate() {
		return this.voucherDate;
	}

	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}

	public BigDecimal getWhtValue() {
		return this.whtValue;
	}

	public void setWhtValue(BigDecimal whtValue) {
		this.whtValue = whtValue;
	}

}